<template>
  <div class="home">
    <p>主页</p>
  </div>
</template>

<script>
import { getCitiesList } from '@/api'
export default {
  created () {
    this.getCitiesData()
  },
  data () {
    return {
      city:null
    }
  },
  methods: {
    // 获取城市列表
    getCitiesData () {
      getCitiesList({type: 'hot'}).then(res=> {
        this.city = res
      })
    }
  }
}
</script>
<style lang="scss" scoped>

</style>
